<template>
  <base-form :form="form">
    <el-form-item :label="$t('模式')">
      <el-select disabled v-model="form.clockAttr.model" class="full-width">
        <el-option key="number" label="数字" value="number"></el-option>
      </el-select>
    </el-form-item>
    <el-form-item :label="$t('格式')">
      <el-select disabled v-model="form.clockAttr.format" class="full-width">
        <el-option v-for="(item, index) in formatArray" :key="index" :label="item.name" :value="item.value"></el-option>
      </el-select>
    </el-form-item>
    <el-form-item :label="$t('字体')">
      <el-select disabled v-model="form.clockAttr.font" class="full-width">
        <el-option v-for="(item, index) in fontArray" :key="index" :label="item.name" :value="item.value"></el-option>
      </el-select>
    </el-form-item>
    <el-form-item :label="$t('字号')">
      <el-select disabled v-model="form.clockAttr.size" class="full-width"></el-select>
    </el-form-item>
    <el-form-item :label="$t('颜色')">
      <div class="flex">
        <el-color-picker disabled @change="() => {}" v-model="form.clockAttr.color"></el-color-picker>
      </div>
    </el-form-item>
  </base-form>
</template>

<script>
import BaseForm from './BaseForm'
import { fontItemArray, dataFormatArray } from '@/const/index'

export default {
  components: {
    BaseForm
  },
  props: {
    form: {
      type: Object,
      default() {
        return {}
      }
    }
  },
  data() {
    return {
      formatArray: dataFormatArray,
      fontArray: fontItemArray
    }
  }
}
</script>

<style lang="scss" scoped>
.full-width {
  width: 200px;
}
.flex {
  display: flex;
  align-items: center;
  height: 28px;
}
.bg-btn {
  width: 22px;
  height: 20px;
  background: $defaultBlue;
}
</style>